package com.kanshu.ksgb.fastread.doudou.common.business.pay;

import com.kanshu.ksgb.fastread.doudou.common.net.bean.BaseResult;
import com.kanshu.ksgb.fastread.doudou.common.business.pay.bean.AliOrderBean;
import com.kanshu.ksgb.fastread.doudou.common.business.pay.bean.WxOrderBean;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by wcy on 2017\6\29 0029.
 */

public interface PayService {
    @FormUrlEncoded
    @POST("yd/pay/weixinapp")
    Observable<BaseResult<WxOrderBean>> getWxOrder(@FieldMap Map<String, String> map);
    @FormUrlEncoded
    @POST("yd/pay/alipayapp")
    Observable<BaseResult<AliOrderBean>> getAliOrder(@FieldMap Map<String, String> map);
    @FormUrlEncoded
    @POST("yd/pay/alisync")
    Observable<ResponseBody> notifyServerByAliPay(@FieldMap Map<String, String> map);
}
